package com.neusoft.service;

import com.neusoft.po.Coupon;

import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;

public interface CouponService {
    public List<Coupon> listCouponByUserId(String userId);
    
    public List<Coupon> listCouponByAmount(String userId, double amount);

    public Integer addCoupon(String userId, String couponName, double threshold, double discount);

    public Integer useCoupon(String userId, Integer couponId);
}
